from api.login_api import LoginApi
import pytest
from common import read03
from common.assert_tools import assert_tools
from config import BASE_PATH


class TestIhrmLogin:
    @pytest.mark.parametrize("dase,req_boby,status,success,code,message",read03.read2(BASE_PATH + "/data/ihrm_login02.json"))
    def testlogin01(self,dase,req_boby,status,success,code,message):
        resp = LoginApi().login(req_boby)
        print(dase,resp.json())
        assert_tools(resp,status,success,code,message)
